int hotspot_x, hotspot_y;
int width, height;
struct wl_buffer *buffer;
+ gboolean free_buffer;
};
struct _GdkWaylandCursorClass
GdkWaylandCursor *cursor = GDK_WAYLAND_CURSOR (object);
g_free (cursor->name);
- if (cursor->cursor.type == GDK_CURSOR_IS_PIXMAP)
+ if (cursor->free_buffer)
wl_buffer_destroy (cursor->buffer);
G_OBJECT_CLASS (_gdk_wayland_cursor_parent_class)->finalize (object);
private->height = cursor->images[0]->height;
private->buffer = wl_cursor_image_get_buffer(cursor->images[0]);
+ private->free_buffer = FALSE;
add_to_cache (wayland_display, private);
cursor->height,
stride,
WL_SHM_FORMAT_ARGB8888);
+ cursor->free_buffer = FALSE;
wl_shm_pool_destroy (pool);